package com.bjsxt.service;

import com.bjsxt.pojo.Admin;
import com.bjsxt.pojo.PageA;
import org.apache.ibatis.annotations.Insert;

public interface AdminService {

    //查询用户登录
    Admin selectAdminSice(String aname, String apwd);

    //分页查询所有
    PageA<Admin> selectAdminAllSice(Integer page,Integer rows);

    //添加管理员
    Integer insertAdmin(Admin admin,Integer aid, Integer rid);

    //修改
    Integer updateAdmin(Admin admin,Integer aid,Integer rid);

    //删除管理员
    Integer deleteAdminSice(Integer aid);
}
